package com.buobao.bmall.exception;

public enum ExceptionEnum {
    NEED_USER_NAME(801, "用户名不能为空"),
    NEED_PASSWORD(802, "密码不能为空"),
    WRONG_PASSWORD(803, "密码错误"),
    SHORT_PASSWORD(804, "密码长度不足"),
    USER_EXIST(805,"用户名已存在"),
    REGISTER_FAILED(806,"注册失败"),
    UPDATE_USER_FAILED(807,"更新用户签名失败"),
    NEED_ADMIN(808,"需要管理员权限");


    Integer code;
    String msg;

    ExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
